<%--
  Created by IntelliJ IDEA.
  User: 13939
  Date: 2024/11/29
  Time: 11:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <%
        //检测用户是否已经登陆了
        String username  = (String) session.getAttribute("username");


        if(username==null){
            response.sendRedirect("/login/login.jsp");
            return;  //!!!!!不能少  返回  不执行下面的语句
        }
    %>
    <meta charset="UTF-8">
    <title>发布成功</title>
    <link rel="stylesheet" href="../styles/newSuccess.css">
</head>
<body>
<div class="container">
    <h1>发布成功！</h1>
    <p>您的内容已成功发布。</p>
    <div class="mt-4">
        <a href="../show/show.jsp" class="btn btn-primary">返回主页</a>
        <a href="publishNews.jsp" class="btn btn-secondary">继续发布</a>
    </div>
</div>
</body>
</html>
